package com.sicnu.cheer.leaugebar.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.sicnu.cheer.leaugebar.R;

import java.util.HashMap;
import java.util.Map;

import io.rong.imkit.model.Event;

/**
 * Created by cheer on 2017/1/23.
 * 活动页父布局
 */

public class EventParentFragment extends MainBaseFragment {

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return super.onCreateView(inflater, container, savedInstanceState);
    }

    @Override
    protected int setImgId() {
        return R.mipmap.event;
    }

    @Override
    protected Map<String, Fragment> setTitlesAndFragments() {
        Map map=new HashMap();
        EventChildFragment fragment=new EventChildFragment();
        Bundle bundle=new Bundle();

        bundle.putBoolean("isHot",false);
        fragment.setArguments(bundle);
        map.put("最新活动",fragment);

        bundle=new Bundle();
        fragment=new EventChildFragment();
        bundle.putBoolean("isHot",true);
        fragment.setArguments(bundle);
        map.put("热门活动",fragment);
        return map;
    }
}
